﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZWZ.Web.Codes.UC.ControlAttr;

namespace ZWZ.Web.Codes.UC.Base
{
    public class TitleControl : ControlBase
    {
        private string _title = "- 标题 -";
        private bool _showTitle = true;
        private bool _showMoreButton = true;
        private string _moreUrl = "javascript:void(0);";

        [ControlProperty(enum_AttrType.Text, enum_AttrGroup.基本属性, "标题")]
        public string Title { get { return _title; } set { _title = value; } }

        [ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "显示标题栏")]
        public bool ShowTitle { get { return _showTitle; } set { _showTitle = value; } }

        [ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "显示更多")]
        public bool ShowMoreButton { get { return _showMoreButton; } set { _showMoreButton = value; } }

        [ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "更多按钮链接")]
        public string MoreUrl { get { return _moreUrl; } set { _moreUrl = value; } }
    }
}
